
<!DOCTYPE html>
<html>
    <head>
        <title>Multi World MUD</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
        
        <link rel="stylesheet" href="resources/css/styles.css" type="text/css"/>
        <link rel="stylesheet" href="resources/css/mudos.css" type="text/css"/>
        <script src="resources/js/mudos.js"></script>
        
    </head>
    <% 
        Object usr = session.getAttribute( "user");
        Object chr = session.getAttribute("character");
    %>
    <body>
    	<jsp:include page="parts/index/cabecera.jsp" />    	  
    	    	        
    	<div id="principal">
    	<%  String error = request.getParameter("error"); 
    		if ( error != null && !error.equals("") ) { %>
    	<div id="error"><%=error %></div>
        <% } %>
        
        
        <%
        
        if (usr == null || usr =="") { %>
        	<jsp:include page="parts/index/login.jsp" />			
		<% } else if ( chr == null || chr == "" ) { 
		    String user = usr.toString();
		%>
			<jsp:include page="parts/index/selectchar.jsp" />
			
		<% } else { 
			String character = chr.toString();
		%>          
         	<jsp:include page="parts/index/mudosclient.jsp" />
        <% } %>
        
        </div>
        <div id="pie">
        Pie de web
        </div>
        
    </body>
</html>

<script>
$(function(){
	$("#bannerimg").css("height",$("#banner").css("height"));
});
</script>